package com.atguigu.java.ai.langchain4j.assistant;


import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;
import reactor.core.publisher.Flux;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

@AiService(
        wiringMode = EXPLICIT,
//        chatModel = "openAiChatModel",
        streamingChatModel = "openAiStreamingChatModel",
        chatMemoryProvider = "chatMemoryProviderRenHe",
        tools = "appointmentTools",
        contentRetriever = "contentRetrieverRenHe"

)
public interface RenHeYiYuanAgent {

    @SystemMessage(fromResource = "ren_he_yi_yuan_prompt_template.txt")
    Flux<String> chat(
            @MemoryId Long memoryId,
            @UserMessage String userMessage
    );
}
